// SimNet is a Second Life(tm) sim mangement tool that was designed for Fermi Sandbox
// Copyright (C) 2011 Arthur Fermi
// 
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// To receive a copy of this license please visit http://www.gnu.org/licenses/

// SimNet - Settings

// Global Variables
    integer gintDCC;            // Dialog Communications Channel


default
{
    state_entry()
    {
        // Setup the device
        gintDCC = llCeil(llFrand(10000.0));
        // Listen for commmands
        llListen(gintDCC,"", llGetOwner(), "");

        llOwnerSay("Ready");
    }

    touch_start(integer total_number)
    {
        llDialog(llDetectedKey(0),"Toolbar Settings\n \nIcons - Icons Only on the buttons\nIcons+Text - Icons and text on the buttons.", ["Icons", "Icons+Text"], gintDCC);
    }

    listen(integer channel, string name, key id, string message)
    {
        if (channel == gintDCC)
        {
            llMessageLinked(-1, 1000,message, NULL_KEY);
        }
        
    }

}
